import {getRequest, postRequest} from "@/utils/request.js";

export async function searchUser(keyword, sort) {
    try {
        return await getRequest(`/heaven-server/search/user`, {keyword, sort});
    } catch (e) {
        console.log('搜索用户失败！',e);
        return {code: -1, msg: `搜索用户失败-${e.message}`}
    }
}